#app {
  .main-container {
    min-height: 100%;
    transition: margin-left 0.28s;
    margin-left: $sideBarWidth;
    position: relative;
  }

  .navbar-container {
    padding-left: $sideBarWidth;
    .logo-container {
      width: $sideBarWidth;
    }
  }

  .sidebar-container {
    transition: width 0.28s;
    width: $sideBarWidth !important;
    background-color: $menuBg;
    height: 100%;
    position: fixed;
    font-size: 0px;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 80px);
      }
    }

    .is-horizontal {
      display: none;
    }

    .svg-icon {
      margin-right: 16px;
      width: 16px;
      height: 16px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;

      a {
        display: inline-block;
        width: 100%;
        overflow: hidden;
      }
      .el-menu-item {
        display: flex;
        align-items: center;
      }
    }

    // menu hover
    .submenu-title-noDropdown,
    .el-submenu__title {
      &:hover {
        background-color: $menuHover !important;
      }
      .svg-icon + span,
      .sub-el-icon + span,
      i + span {
        margin-left: 16px;
      }
    }

    .is-active > .el-submenu__title {
      color: $subMenuActiveText !important;
    }

    & .nest-menu .el-submenu > .el-submenu__title,
    & .el-submenu .el-menu-item {
      min-width: $sideBarWidth !important;
      background-color: $subMenuBg !important;

      &:hover {
        background-color: $subMenuHover !important;
      }
    }
    & .el-submenu .el-menu-item {
      padding-left: 40px !important;
      &::before {
        content: '';
        width: 3px;
        height: 3px;
        margin-right: 10px;
        display: block;
        background: $subMenuActiveText;
        opacity: 0.6;
        border-radius: 3px;
      }
    }

    .hamburger {
      line-height: 30px;
      height: 30px;
      cursor: pointer;
      transition: background 0.3s;
      -webkit-tap-highlight-color: transparent;
      text-align: center;
      color: #fff;
      background: rgba(0, 0, 0, 0.2);
      .svg-icon {
        font-size: 14px;
        margin: 0;
      }
    }
  }

  .fixed-box {
    &__content {
      position: fixed;
      bottom: 0;
      right: 0;
      width: calc(100% - #{$sideBarWidth});
      z-index: 2000;
      // display: flex;
      // align-items: center;
      // justify-content: center;
      padding: 20px 15px;
      border-top: 1px solid #ececec;
      background: #f9fbff;
    }
    &__place {
      width: 100%;
      height: 100px;
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $sideBarWidth !important;
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform 0.28s;
      width: $sideBarWidth !important;
    }
  }

  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}
// hideSidebar
.hideSidebar {
  #app {
    .sidebar-container {
      width: $sideBarCollapseWidth !important;
    }

    .main-container {
      margin-left: $sideBarCollapseWidth;
    }

    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;
        text-align: center;
        .svg-icon + span,
        .sub-el-icon + span {
          margin-left: 20px;
        }
      }
    }

    .el-submenu {
      overflow: hidden;

      & > .el-submenu__title {
        padding: 0 !important;
        text-align: center;

        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        & > .el-submenu__title {
          & > span {
            height: 0;
            width: 0;
            margin-left: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }

    .fixed-box {
      &__content {
        width: calc(100% - #{$sideBarCollapseWidth});
      }
    }
  }
  // mobile responsive
  .mobile {
    .sidebar-container {
      pointer-events: none;
      transition-duration: 0.3s;
      transform: translate3d(-$sideBarWidth, 0, 0);
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  & > .el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-submenu > .el-submenu__title,
  .el-menu-item {
    &:hover {
      // you can use $subMenuHover
      background-color: $menuHover !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  > .el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}
